home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / MASM61.RAR / SAMPLES / SHOW / SHOW.IN$ / SHOW
Encoding:
Text File  |  1994-02-09  |  1.4 KB  |  42 lines

  1. ;* SHOW.INC - Include file used by SHOW.
  2. ;* Contains constants, prototypes, and global variables.
  3.  
  4. ; Constants
  5. LINE_POS        EQU     6       ; Position of line number string
  6. FILE_POS        EQU     6       ; Position of filename string
  7. X_MAX           EQU     80      ; Number of columns
  8. STAT_CLR        EQU     030h    ; Status line color - black on cyan
  9. STAT_BW         EQU     070h    ; Status line B&W - black on white
  10. SCRN_CLR        EQU     017h    ; Screen color - white on blue
  11. SCRN_BW         EQU     007h    ; Screen B&W - white on black
  12.  
  13. NAME_MAX    EQU    66    ; DOS maximum file specification
  14. SEG_CLR     EQU    0B800h    ; Color address
  15. SEG_MONO        EQU     0B000h  ; Monochrome address
  16.  
  17. ; Prototypes
  18. Show            PROTO
  19. GetNamePos      PROTO pchSpec:PTR BYTE
  20. GetVid          PROTO
  21. Pager           PROTO cLines:SWORD
  22. GoBack          PROTO
  23. GoForeward      PROTO
  24. EndCount        PROTO
  25. BinToStr        PROTO i:WORD, pch:PTR BYTE
  26. Quit            PROTO
  27. ShowLine    PROTO fpBuffer:FAR PTR BYTE, y:WORD, attr:BYTE
  28. IsEGA           PROTO
  29. CellFill        PROTO yStart:WORD, cbCell:WORD, celFill:WORD
  30. FillTab         PROTO
  31.  
  32.  
  33. ; Global variables
  34.  
  35.         .DATA
  36.         EXTERNDEF       atSta:BYTE, atScr:BYTE, segBuf:WORD, offBuf:WORD
  37.         EXTERNDEF       cbBuf:WORD, stLine:BYTE, yMax:WORD, yCur:WORD
  38.     EXTERNDEF    segVid:WORD, fCGA:BYTE, celCur:WORD, atCur:BYTE
  39.     EXTERNDEF    celScr:WORD
  40.  
  41. @CurSeg ENDS        ; End current
  42.